package com.ipartek.pruebas.bbddaccessP1;


public abstract class DAOFactoryP1{
	
	public static final int OBDC = 1;
	public static final int MYSQL = 2;
	public static final int TXT = 3;
	
	public abstract AlumnoDAOP1 getAlumno();
	public abstract CursoDAOP1 getCurso();
	
	public static DAOFactoryP1 getFactoria(int BD){
		switch (BD) {
		case OBDC:
			return new OBDCDAOFactoryP1();
		
		case MYSQL:
			return new MYSQLDAOFactoryP1();
		
		case TXT:
			return new TXTDAOFactoryP1();
		
		default:
			return new OBDCDAOFactoryP1();
		}
		
	}
}
